<style>
  .basemenus_table1 {
    width: 100%;
    margin:30px 0 0 0;
  }
  .basemenus_table2 {
    background-color:#c3d9ff;
    width: 100%;
    height:23px;
    text-align:center;
    margin-bottom:15px;
  }
  .basemenus_table3 {
    width: 100%;
    height:23px;
  }
  .basemenus_td0 {
    height: 23px;
    width:100%;
  }
  .basemenus_td1 {
    cursor: pointer;
    font-weight: bold;
    background-color:#e5ecf9;
  }
  .basemenus_td1Hilight {
    cursor: pointer;
    font-weight: bold;
    background-color:#c3d9ff;
  }
  .basemenus_td3 {
    padding: 4px 8px 3px;
    height: 16px;
    white-space:nowrap;
    text-align: center;
    vertical-align: middle;
    font-size: 10pt;
    color: blue; 
    text-decoration: underline ;
    font-family: Arial;
    cursor: pointer;
  }
  .basemenus_td3Hilight {
    padding: 4px 8px 3px;
    height: 16px;
    white-space:nowrap;
    text-align: center;
    vertical-align: middle;
    font-size: 10pt;
    font-family: Arial;
    cursor: pointer;
  }
  .basemenus_td4 {
    width: 100%;
    height: 23px;
  }
  .basemenus_td5 {
    width: 1px;
    height: 23px; 
    font-size:10pt;
    text-align: center;
    vertical-align: middle;
  }
  .basemenus_td6 {
    cursor: default;
    height: 13px; 
    font-size:8pt;
    color:red;
    text-align: center;
    vertical-align: middle;
  }
  .basemenus_item div{
    height:1px;
    overflow:hidden;
    border-left:1px solid #c3d9ff;
    border-right:1px solid #c3d9ff;
  }
  .basemenus_item .row1{
    margin:0 5px;
   }
  .basemenus_item .row2{
    margin:0 3px;
    border:0 2px;
  }
  .basemenus_item .row3{
    margin:0 2px;
  }
  .basemenus_item .row4{
    margin:0 1px;
    height:2px;
  }
  .basemenus_item1 div{
    height:1px;
    overflow:hidden;
    border-left:1px solid #e5ecf9;
    border-right:1px solid #e5ecf9;
  }
  .basemenus_item1 .row1{
    margin:0 5px;
   }
  .basemenus_item1 .row2{
    margin:0 3px;
    border:0 2px;
  }
  .basemenus_item1 .row3{
    margin:0 2px;
  }
  .basemenus_item1 .row4{
    margin:0 1px;
    height:2px;
  }
  .basemenus_p{
    padding: 0 13px;
    height:16px;
    background-color:#c3d9ff;
    vertical-align:bottom;
    padding-bottom:3px;
    margin:0;
    white-space: nowrap;
  }
  .basemenus_ph{
    padding: 0 13px;
    height:16px;
    background-color:#e5ecf9;
    vertical-align:bottom;
    padding-bottom:3px;
    margin:0;
    white-space: nowrap;
  }
  .basemenus_td1Hilight a,.basemenus_td1 a{
    text-decoration:none;
    font-size:10pt; 
    color:black;
    outline: none;
  } 
  .basemenus_td3Hilight a,.basemenus_td3Hilight a{
    color:black;
    font-size:10pt; 
    text-decoration:none;
    outline: none;
  }
  .basemenus_td3 a,.basemenus_td3 a{
   font-size:10pt; 
    outline: none;
  }
  .basemenus_td6 a{
    color:red;
  }
  .basemenus_btm{
    height: 16px;
    padding: 1px 13px 0;
    text-align: center;
    white-space: nowrap;
  }
</style>

<script src="jsrequest.php?script={{$template|escape:'html'}}" type="text/javascript"></script>
<script type="text/javascript">
  <!--
    if (document.addEventListener) {
      document.addEventListener('DOMContentLoaded', init, false);
    }
    window.onload = init;

    function init() {
      if (!document.getElementById || !document.createElement || !arguments || arguments.callee._loaded) {
        return;
      }
      arguments.callee._loaded = true;
      var gui = document.getElementById('{{$template|escape:'javascript'}}' + '_task_div');
      if (gui) {
        var result = MiscUtils.decode('{{$smry|escape:javascript}}');
        
        gui.style.fontSize = '14px';
        gui.style.color = '#456faf';
        gui.style.fontWeight = 'normal';
        if (result['urgent'] != 0) {
          gui.appendChild(document.createTextNode(' ('));
          span = document.createElement('span');
          span.style.color = '#ff0000';
          span.appendChild(document.createTextNode(result['urgent']));
          gui.appendChild(span);
          gui.appendChild(document.createTextNode(' of ' + result['total'] + ')'));
        } else {
          gui.appendChild(document.createTextNode(' (' + result['total'] + ')'));
        }
      }
    }
  //-->
</script>

{{if $u->type == $smarty.const.USER_TYPE_ADMINISTER}}
<table class="basemenus_table1"  cellPadding="0" cellSpacing="0" border=0>
<tr>
{{*/*
  {{if $menu->a == 1}} 
    <td class="basemenus_td1Hilight" onclick="location.href='?t=padminall'">
  {{else}}
    <td class="basemenus_td1" onclick="location.href='?t=padminall'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=padminall'>Processing</a>
        <span id = "{{$template|escape:'javascript'}}_task_div" ></span>
      </div>
    </td>
    
    <td>&nbsp;&nbsp;</td>
   */*}}
  {{if $menu->a == 2}} 
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=padminspreadsheet'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=padminspreadsheet'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=padminspreadsheet'>View All</a>
      </div>
    </td>
    
    <td>&nbsp;&nbsp;</td>
    
    {{if $menu->a == 4}} 
      <td class="basemenus_td1Hilight"  onclick="location.href='?t=padmindesignertask'">
    {{else}}
      <td class="basemenus_td1"  onclick="location.href='?t=padmindesignertask'">
    {{/if}}
        <div class="round4"></div>
        <div class="round2"></div>
        <div class="round1"></div>
        <div class="basemenus_btm">
          <a href='?t=padmindesignertask'>Designer's Task</a>
        </div>
      </td>
      
      <td>&nbsp;&nbsp;</td>
    
    {{if $menu->a == 7}} 
      <td class="basemenus_td1Hilight" onclick="location.href='?t=padminproject'">
    {{else}}
      <td class="basemenus_td1" onclick="location.href='?t=padminproject'">
    {{/if}}
        <div class="round4"></div>
        <div class="round2"></div>
        <div class="round1"></div>
        <div class="basemenus_btm">
          <a href='?t=padminproject'>Planning</a>
        </div>
      </td>
    
    <td>&nbsp;&nbsp;</td>
      
  {{if $menu->a == 5}} 
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=padminsheet'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=padminsheet'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=padminsheet'>Spread Sheet</a>
      </div>
    </td>
    
    <td>&nbsp;&nbsp;</td>
    
    {{if $menu->a == 6}}
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=padminscoresheet'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=padminscoresheet'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=padminscoresheet'>Score Sheet</a>
      </div>
    </td>
    
    <td>&nbsp;&nbsp;</td>
    
  {{if $menu->a == 3}}
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=busers'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=busers'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=busers'>Administer</a>
      </div>
    </td>
      
    <td style="width:100%"></td>
  </tr>
</table>

{{if $menu->a == 4}}
  <div align="center">
    <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
      <tr>
        <td class="basemenus_td0" align="center">
          <table class="basemenus_table3" cellPadding="0" cellSpacing="0" border=0>
            <tr>
              <td {{if $menu->b == 1}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                  <a href='?t=padmindesignertask'>Uncompleted Task</a>
              </td>
              <td class="basemenus_td5">|</td>
              <td {{if $menu->b == 2}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                  <a href='?t=padmindesignertaskundo'>Completed Task</a>
              </td>
              <td class="basemenus_td4"></td>
            </tr>
          </table>
        <td>
      </tr>
    </table>
  </div>
{{else}}
{{if $menu->a == 3}}
  <div align="center">
    <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
      <tr>
        <td class="basemenus_td0" align="center">
          <table class="basemenus_table3" cellPadding="0" cellSpacing="0" border=0>
            <tr>
              <td {{if $menu->b == 1}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                  <a href='?t=busers'>Users</a>
              </td>
              <td class="basemenus_td5">|</td>
              <td {{if $menu->b == 2}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                  <a href='?t=bmodels'>Models</a>
              </td>
              <td class="basemenus_td4"></td>
            </tr>
          </table>
        <td>
      </tr>
    </table>
  </div>
{{else}}
  <div align="center">
    <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
      <tr><td>&nbsp</td></tr>
    </table>
  </div>
{{/if}}
{{/if}}
{{/if}}

  
{{if $u->type == $smarty.const.USER_TYPE_DESIGNER}}
<table class="basemenus_table1"  cellPadding="0" cellSpacing="0" border=0>
  <tr>
  
  {{if $menu->a == 1}} 
    <td class="basemenus_td1Hilight" onclick="location.href='?t=pdesignerall'">
  {{else}}
    <td class="basemenus_td1" onclick="location.href='?t=pdesignerall'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=pdesignerall'>Processing</a>
        <span id = "{{$template|escape:'javascript'}}_task_div" ></span>
      </div>
    </td>
    
    <td>&nbsp;&nbsp;</td>
    
    {{if $menu->a == 2}}
      <td class="basemenus_td1Hilight" onclick="location.href='?t=pdesignerspreadsheet'">
    {{else}}
      <td class="basemenus_td1" onclick="location.href='?t=pdesignerspreadsheet'">
    {{/if}}
        <div class="round4"></div>
        <div class="round2"></div>
        <div class="round1"></div>
        <div class="basemenus_btm">
          <a href='?t=pdesignerspreadsheet'>View All</a>
        </div>
      </td>
    
    <td>&nbsp;&nbsp;</td>
    
    <td style="width:100%"></td>
  </tr>
</table>
  
<table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
  <tr><td>&nbsp</td></tr>
</table>
{{/if}}
  
{{if $u->type == $smarty.const.USER_TYPE_ASSISTANT}}
<table class="basemenus_table1"  cellPadding="0" cellSpacing="0" border=0>
  <tr>
  {{if $menu->a == 1}} 
    <td class="basemenus_td1Hilight" onclick="location.href='?t=passistantall'">
  {{else}}
    <td class="basemenus_td1" onclick="location.href='?t=passistantall'">
  {{/if}}
    <div class="round4"></div>
    <div class="round2"></div>
    <div class="round1"></div>
    <div class="basemenus_btm">
      <a href='?t=passistantall'>Processing</a>
      <span id = "{{$template|escape:'javascript'}}_task_div" ></span>
    </div>
  </td>
  <td>&nbsp;&nbsp;</td>
    
    {{if $menu->a == 2}} 
      <td class="basemenus_td1Hilight" onclick="location.href='?t=passistantspreadsheet'">
    {{else}}
      <td class="basemenus_td1" onclick="location.href='?t=passistantspreadsheet'">
    {{/if}}
        <div class="round4"></div>
        <div class="round2"></div>
        <div class="round1"></div>
        <div class="basemenus_btm">
          <a href='?t=passistantspreadsheet'>View All</a>
        </div>
      </td>
    
    <td>&nbsp;&nbsp;</td>
    
    {{if $menu->a == 3}} 
      <td class="basemenus_td1Hilight" onclick="location.href='?t=passistantproject'">
    {{else}}
      <td class="basemenus_td1" onclick="location.href='?t=passistantproject'">
    {{/if}}
        <div class="round4"></div>
        <div class="round2"></div>
        <div class="round1"></div>
        <div class="basemenus_btm">
          <a href='?t=passistantproject'>Planning</a>
        </div>
      </td>
    
    <td>&nbsp;&nbsp;</td>
    
  {{if $menu->a == 5}} 
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=passistantsheet'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=passistantsheet'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=passistantsheet'>Spread Sheet</a>
      </div>
    </td>
    
    <td>&nbsp;&nbsp;</td>
    
  {{if $menu->a == 6}}
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=passistantscoresheet'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=passistantscoresheet'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=passistantscoresheet'>Score Sheet</a>
      </div>
    </td>
 
    <td>&nbsp;&nbsp;</td>
    
    {{if $menu->a == 4}} 
      <td class="basemenus_td1Hilight" onclick="location.href='?t=ausers'">
    {{else}}
      <td class="basemenus_td1" onclick="location.href='?t=ausers'">
    {{/if}}
        <div class="round4"></div>
        <div class="round2"></div>
        <div class="round1"></div>
        <div class="basemenus_btm">
          <a href='?t=ausers'>Backend</a>
        </div>
      </td>
    
    <td style="width:100%"></td>
  </tr>
</table>

<div align="center">
  <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
    <tr><td>&nbsp</td></tr>
  </table>
</div>
{{/if}}

{{if $u->type == $smarty.const.USER_TYPE_MAILER}}
  <table class="basemenus_table1"  cellPadding="0" cellSpacing="0" border=0>
    <tr>
    
    {{if $menu->a == 1}} 
      <td class="basemenus_td1Hilight"  onclick="location.href='?t=pmaileraddparcel'">
    {{else}}
      <td class="basemenus_td1"  onclick="location.href='?t=pmaileraddparcel'">
    {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=pmaileraddparcel'>Add Manually</a>
      </div>
    </td>
    
    <td>&nbsp;&nbsp;</td>
    
  {{if $menu->a == 2}}
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=pmailerallparcel'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=pmailerallparcel'">
  {{/if}}
    <div class="round4"></div>
    <div class="round2"></div>
    <div class="round1"></div>
    <div class="basemenus_btm">
      <a href='?t=pmailerallparcel'>Parcel List</a>
    </div>
  </td>
  
  <td>&nbsp;&nbsp;</td>
 
  {{if $menu->a == 3}}
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=pmailerunreceivedcustomer'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=pmailerunreceivedcustomer'">
  {{/if}}
    <div class="round4"></div>
    <div class="round2"></div>
    <div class="round1"></div>
    <div class="basemenus_btm">
      <a href='?t=pmailerunreceivedcustomer'>Unreceived Customer</a>
    </div>
  </td>
  
  <td>&nbsp;&nbsp;</td>
  
  {{if $menu->a == 5}} 
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=pmailersheet'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=pmailersheet'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=pmailersheet'>Spread Sheet</a>
      </div>
    </td>
  
  <td>&nbsp;&nbsp;</td>
  
  {{if $menu->a == 6}}
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=pmailerscoresheet'">
  {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=pmailerscoresheet'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=pmailerscoresheet'>Score Sheet</a>
      </div>
    </td>
  
    <td>&nbsp;&nbsp;</td>
    
  {{if $menu->a == 4}} 
    <td class="basemenus_td1Hilight" onclick="location.href='?t=bcouriers'">
  {{else}}
    <td class="basemenus_td1" onclick="location.href='?t=bcouriers'">
  {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=bcouriers'>Backend</a>
      </div>
    </td>
      <td style="width:100%"></td>
    </tr>
  </table>
  
  {{if $menu->a == 4}}
  <div align="center">
    <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
      <tr>
        <td class="basemenus_td0" align="center">
          <table class="basemenus_table3" cellPadding="0" cellSpacing="0" border=0>
            <tr>
              <td {{if $menu->b == 1}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                  <a href='?t=bcouriers'>Couriers</a>
              </td>
              <td class="basemenus_td5">|</td>
              <td {{if $menu->b == 2}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                  <a href='?t=bcultures'>Cultures</a>
              </td>
              <td class="basemenus_td5">|</td>
              <td {{if $menu->b == 3}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                  <a href='?t=bceremonys'>Ceremonys</a>
              </td>
              <td class="basemenus_td5">|</td>
              <td {{if $menu->b == 4}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                  <a href='?t=breceptions'>Receptions</a>
              </td>
              <td class="basemenus_td5">|</td>
              <td {{if $menu->b == 5}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                  <a href='?t=bweddingcolors'>Wedding Colors</a>
              </td>
              <td class="basemenus_td4"></td>
            </tr>
          </table>
        <td>
      </tr>
    </table>
  </div>
{{else}}
  <div align="center">
    <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
      <tr><td>&nbsp</td></tr>
    </table>
  </div>
{{/if}}
{{/if}}